evm_balance_of_erc20

query evm_balance_of_erc20(network_id: integer, token_address: byte_array, beneficiary: byte_array): big_integer

Retrieves the balance of an ERC-20 token for a specified beneficiary on a given network. The query is useful for checking the token balance of a beneficiary on an EVM network.

Return

big_integer - The balance of the specified ERC-20 token for the beneficiary, or 0L if the token or balance is not found.

Parameters

network_id
  • The ID of the network where the ERC-20 token is deployed.

token_address
  • The address of the ERC-20 token contract.

beneficiary
  • The address of the beneficiary whose token balance is being queried.